Skip to content

ReactiveWindow class

Defined in

Namespace: Avalonia.ReactiveUI Assembly: ReactiveUI.Avalonia.Autofac.dll Full name: Avalonia.ReactiveUI.ReactiveWindow<T> Modifiers: public

Summary

View source

A ReactiveUI Window that implements the IViewFor interface and will activate your ViewModel automatically if the view model implements IActivatableViewModel. When the DataContext property changes, this class will update the ViewModel property with the new DataContext value, and vice versa.

Applies to

netstandard2.0, netstandard2.0, netstandard2.0, netstandard2.0, netstandard2.0

Class hierarchy
classDiagram
class ReactiveWindow~T~
class Window
Window <|-- ReactiveWindow~T~
class IViewFor~TViewModel~ {
    <>
}
IViewFor~TViewModel~ <|.. ReactiveWindow~T~
class IViewFor {
    <>
}
IViewFor <|.. ReactiveWindow~T~
class IActivatableView {
    <>
}
IActivatableView <|.. ReactiveWindow~T~

Inherits from: Window

Implements: IViewFor<TViewModel>, IViewFor, IActivatableView

Constructors

NameSummary
.ctorInitializes a new instance of the [ReactiveWindow](# class.

Properties

NameSummary
ViewModelGets or sets the ViewModel.

Fields

NameSummary
static ViewModelPropertyThe view model property.
Inherited members